import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/mining_info_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/mining_info_entity.g.dart';

@JsonSerializable()
class MiningInfoEntity {
	String? id;
	String? nameZh;
	String? nameEn;
	String? nameTh;
	int? miningType;
	String? coverUrl;
	int? cycle;
	String? rate;
	int? min;
	int? max;
	int? oneMax;
	int? purchased;
	String? drnToToolRate;
	int? startTime;
	int? endTime;
	int? state;
	int? buyNeedInvite;
	int? inviteCount;
	int? totalInviteCount;
	int? totalInvestLimit;
	int? totalInvestNum;
	int? returnType;
	int? isTrial;
	int? trialQualification;

	MiningInfoEntity();

	factory MiningInfoEntity.fromJson(Map<String, dynamic> json) => $MiningInfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $MiningInfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}